package com.society.sgsc.entities;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 角色权限
 */
@TableName("t_role")
public class Role implements Serializable {

    private Integer id;//角色编号
    private String roleName;//角色名称
    private String roleAuth;//权限字符
    private Integer roleOrder;//排序
    private Integer roleStatus;//状态
    private String roleMark;//备注
    private String createBy;//创建人
    private String updateBy;//更新人
    private LocalDateTime createTime;//创建时间
    private LocalDateTime updateTime;//更新时间

    public Role() {
    }

    public Role(Integer id, String roleName, String roleAuth, Integer roleOrder, Integer roleStatus, String roleMark, String createBy, String updateBy, LocalDateTime createTime, LocalDateTime updateTime) {
        this.id = id;
        this.roleName = roleName;
        this.roleAuth = roleAuth;
        this.roleOrder = roleOrder;
        this.roleStatus = roleStatus;
        this.roleMark = roleMark;
        this.createBy = createBy;
        this.updateBy = updateBy;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleAuth() {
        return roleAuth;
    }

    public void setRoleAuth(String roleAuth) {
        this.roleAuth = roleAuth;
    }

    public Integer getRoleOrder() {
        return roleOrder;
    }

    public void setRoleOrder(Integer roleOrder) {
        this.roleOrder = roleOrder;
    }

    public Integer getRoleStatus() {
        return roleStatus;
    }

    public void setRoleStatus(Integer roleStatus) {
        this.roleStatus = roleStatus;
    }

    public String getRoleMark() {
        return roleMark;
    }

    public void setRoleMark(String roleMark) {
        this.roleMark = roleMark;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", roleName='" + roleName + '\'' +
                ", roleAuth='" + roleAuth + '\'' +
                ", roleOrder=" + roleOrder +
                ", roleStatus=" + roleStatus +
                ", roleMark='" + roleMark + '\'' +
                ", createBy='" + createBy + '\'' +
                ", updateBy='" + updateBy + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
